package com.ysd.servlet;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.headerDao;
import com.ysd.entity.header;

@WebServlet("/headerServlet")
public class headerServlet extends HttpServlet {
	headerDao dao=new headerDao();
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		ArrayList<header> l=dao.getAllImg();
		req.setAttribute("us", l);
		req.getRequestDispatcher("/header.jsp").include(req, resp);
	}

}
